package com.github.ecbp.user.service.request;

import com.github.ecbp.common.req.BaseIdDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * 修改用户名密码参数
 */
@ApiModel
@Data
public class FindAdminPasswordReq extends BaseIdDTO {
    @ApiModelProperty(value = "验证码", required = true)
    @NotEmpty
    private String code;
    @ApiModelProperty(value = "用户名", required = true)
    @NotEmpty
    private String loginPhone;
    @ApiModelProperty(value = "新密码", required = true)
    @Size(min = 8)
    @NotEmpty
    private String newPassword;
}
